package com.qf.util;

import com.qf.enums.JxcEnum;
import com.qf.vo.ResultVo;

/**
 * 作者: 王鑫
 * 项目名: jxc1
 * 时间:2019/12/4  21:28
 * 描述:
 */
public class R {
    public static ResultVo ok(){
        return new ResultVo(0,"成功",null);
    }
    public static ResultVo ok(Object data){
        return new ResultVo(0,"成功",data);
    }
    public static ResultVo ok(Integer code, String msg){
        return new ResultVo(code,msg,null);
    }
    public static ResultVo error(JxcEnum jxcEnum){
        return new ResultVo(jxcEnum.getCode(),jxcEnum.getMsg(),null);
    }
}
